package com.zhuandaonet.manager.interf;

import com.zhuandaonet.common.exception.ServiceException;
import com.zhuandaonet.manager.req.RoleReq;
import com.zhuandaonet.manager.resp.RoleResp;
import org.springframework.web.bind.annotation.*;

public interface RoleInterf {

    @PostMapping("/manager/role")
    RoleResp add(@RequestBody RoleReq req) throws ServiceException;

    @PutMapping("/manager/role")
    RoleResp update(@RequestBody RoleReq req) throws ServiceException;

    @GetMapping("/manager/role/{id}")
    RoleResp get(@PathVariable String id) throws ServiceException;
}
